nums = [7, 3, 1, 34, 6, 67, 23, 12, 9, 11]

def select_sort(nums):
  for i in range(len(nums)-1):
    for j in range(i + 1, len(nums)-1):
      pivot = nums[i]
      if nums[j] < pivot:
        nums[i], nums[j] = nums[j], nums[i]
    print(f"第{i+1}趟排序结果为{nums}")
  print("最终排序结果为：")
  return nums


if __name__ == '__main__':

  print(select_sort(nums))
